package com.seezoon.application.user.dto;

import com.seezoon.domain.service.user.vo.UserRegisterTypeVO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class UserRegisterCmd {

    @Schema(description = "注册类型，手机号：" + UserRegisterTypeVO.MOBILE + ", 邮箱："
            + UserRegisterTypeVO.EMAIL)
    @NotNull
    private Integer registerType;

    @Schema(description = "手机号或者邮箱")
    @NotEmpty
    private String username;

    @Schema(description = "手机号或者邮箱验证码")
    @NotEmpty
    private String code;

    @Schema(description = "密码")
    @NotEmpty
    @Min(6)
    private String password;
}
